/**
 * 
 */
package com.sci.web.action.datareportseason;

import java.util.List;

import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.bean.Enterprise_Benefit;
import com.sci.web.dao.DataReportM_BaseInfoDao;

/**
 * @author  BaiFuyou
 * @date: Nov 4, 2011 10:02:19 AM
 * 
 * 企业基本信息
 * 
 * 基本信息利润
 */
public class GetAllEnterprsieBenefit_BaseInfo_Action extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8582190466384467564L;
	@Resource
	private DataReportM_BaseInfoDao dataReportM_BaseInfoDao;
	/**
	 * 用户的Id
	 */
	private int id;
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		List<Enterprise_Benefit> list = null;
		list = dataReportM_BaseInfoDao.getAllEnterprseBenefitByUserId(id);
		super.outPrint(super.getJSONArrayString(list));
 		return "json";
	}
}
